home *** CD-ROM | disk | FTP | other *** search
/ Freelog Special Freeware 31 / FreelogHS31.iso / ArgentCompta / FASTCOMPTA / Setup FASTCOMPTA.exe / {app} / FastCompta.chm / html / loadsurvol_des_parametres.js < prev    next >
Text File  |  2006-12-30  |  1KB  |  38 lines

  1. addEvent(window, "load", hwTopicOnLoad);
  2. function hwTopicOnLoad(){Nifty("#nsr2","smooth  normal top");
  3. Nifty("#bottom","smooth  normal bottom");
  4. Nifty("div.info-note,div.info-astuce,div.info-alerte,div.info-valide,div.info-info,div.info-avertissement","smooth  normal all");
  5. var vtip_formsubmit=document.getElementById('tip_form'); vtip_formsubmit.onsubmit=f5;
  6. var vdfocus=document.getElementById('d'); vdfocus.onfocus=f6;
  7. }
  8.  
  9. function f5(){search_form(this);return false;}
  10. function f6(){if (d_first){this.value='';d_first = false;};}
  11.  
  12.  
  13. // ⌐ John Resig - http://ejohn.org/projects/flexible-javascript-events/
  14.  
  15. function addEvent( obj, type, fn )
  16. {
  17.     if (obj.addEventListener)
  18.         obj.addEventListener( type, fn, false );
  19.     else if (obj.attachEvent)
  20.     {
  21.         obj["e"+type+fn] = fn;
  22.         obj[type+fn] = function() { obj["e"+type+fn]( window.event ); }
  23.         obj.attachEvent( "on"+type, obj[type+fn] );
  24.     }
  25. }
  26.  
  27. function removeEvent( obj, type, fn )
  28. {
  29.     if (obj.removeEventListener)
  30.         obj.removeEventListener( type, fn, false );
  31.     else if (obj.detachEvent)
  32.     {
  33.         obj.detachEvent( "on"+type, obj[type+fn] );
  34.         obj[type+fn] = null;
  35.         obj["e"+type+fn] = null;
  36.     }
  37. }
  38.